import request from '@/utils/request'
import type { ApiResponse } from '../index'

// 团购相关接口
export const groupBuyApi = {
  // 获取团购列表
  getList(params?: { page?: number; type?: string }) {
    return request.get<ApiResponse>('/public/group-buys', { params })
  },
  
  // 获取团购详情
  getDetail(id: number) {
    return request.get<ApiResponse>(`/public/group-buys/${id}`)
  }
} 